package itmayiedu.api.service;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @description: 客户端获取分布式配置中心配置文件
 * @author: liucancan
 * @create: 2018-11-20 16:28
 */
@RestController
public class ConfigController {
    @Autowired
    private ConfigService config;

    @RequestMapping("/getConfig")
    public String getConfig() {
        return config.getTest();
    }
}
